<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>运算符</title>
</head>
<body>
    <script>
      var a=123;
      var ge = a % 10;
      console.log(parseInt(ge));
      var shi = a / 10 % 10;
      console.log(parseInt(shi));
      var bai = a / 10 / 10;
      console.log(parseInt(bai));

      var a1 = 3;
      var b1 = 4; // 1            6         4         9         5
      console.log(a1++ / 3 + --b1 * 2 - a1-- % 6 + b1++ * 3 - ++b1); // 1+6-4+9-5=7

      if(a1 >=4){
        if(a1<6){
          console.log("在[4-6)之间")
        }else{
          console.log("不在[4-6)之间")
        }
      }else{
        console.log("不在[4-6)之间")
      }


      var c=10 , d = 20 , e = 30;
      var max = c > d ? c > e ? c:e : d < e ? e : d;
      console.log(max);
    </script>
</body>
</html>